/* .ant-table-body {
  scrollbar-width: auto;
  scrollbar-color: auto;
} */
/* ::-webkit-scrollbar { */
  /* width: 7px; */
  /* 设置滚动条的宽度 */
  /* height: 10px; */
  /* 设置滚动条的高度 */
  /* height: 1px;
  min-height: calc(100% - 50px); */
/* } */

/* ::-webkit-scrollbar-thumb { */
  /* background-color: rgb(245, 246, 248); */
  /* 设置滑块的圆角半径 */
  /* border: 1px solid #ccc; */
  /* 设置滑块的背景颜色 */
  /* border-radius: 10px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1); */
/* } */
/* .box {
  width: 100%;
  height: 500px;
  border: 1px solid #ccc;
  display: flex;
  justify-content: space-between;


}

.boxLeft {
  min-width: 30%;
  max-width: 40%;
  overflow-x: auto;
}

.boxRight {
  width: 70%;

} */

/* 基础样式和移动端适配 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
  background-color: #f5f5f5;
}

.app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
}

.app-header {
  text-align: center;
  margin-bottom: 30px;
  position: sticky;
  top: 0;
  background-color: #f5f5f5;
  padding: 20px 0;
  z-index: 100;
}

.app-header h1 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 15px;
}

/* 搜索和刷新区域 */
.search-refresh-container {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.search-input {
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 20px;
  width: 70%;
  max-width: 400px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.search-input:focus {
  border-color: #3498db;
}

.refresh-button {
  padding: 10px 15px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.refresh-button:disabled {
  background-color: #bdc3c7;
  cursor: not-allowed;
}

.refresh-button:hover:not(:disabled) {
  background-color: #2980b9;
}

.refresh-icon {
  animation: spin 1s linear infinite;
}

/* 刷新指示器 */
.refresh-indicator {
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

.refresh-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* 产品列表布局 */
.product-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.product-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background-color: white;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 15px;
}

.product-info h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #333;
}

.price {
  font-size: 1.3rem;
  font-weight: bold;
  color: #e63946;
  margin-bottom: 10px;
}

.description {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* 加载器和无更多内容提示 */
.loader {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 20px;
}

.small-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.end-message {
  color: #666;
  font-size: 1rem;
  text-align: center;
}

/* 无结果提示 */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
}

.no-results p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 20px;
}

.no-results button {
  padding: 10px 20px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.no-results button:hover {
  background-color: #2980b9;
}

/* 加载状态 */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

/* 错误状态 */
.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
  padding: 20px;
}

.error-container h2 {
  color: #e63946;
  margin-bottom: 15px;
}

.error-container p {
  margin-bottom: 20px;
  color: #666;
}

.error-container button {
  padding: 10px 20px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.error-container button:hover {
  background-color: #2980b9;
}

/* 动画 */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .product-container {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .search-refresh-container {
    flex-direction: column;
  }
  
  .search-input {
    width: 100%;
  }
  
  .refresh-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .app {
    padding: 10px;
  }
  
  .product-container {
    grid-template-columns: 1fr;
  }
  
  .product-image {
    height: 180px;
  }
  
  .app-header h1 {
    font-size: 1.5rem;
  }
}